﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SArenaMatch extends IMessageBase
    {
        public var code:int;
        public var arenaId:SEntityId;
        public var enterTime:int;
        public const _type:int = 7003;
        public static var _regist:SArenaMatch = new SArenaMatch(true);

        public function SArenaMatch(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SArenaMatch();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.code);
            this.arenaId.__write(param1);
            param1.writeInt(this.enterTime);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.code = param1.readInt();
            this.arenaId = new SEntityId();
            this.arenaId.__read(param1);
            this.enterTime = param1.readInt();
            return;
        }// end function

    }
}
